###########################################################
# POST build copy
###########################################################

win32 {
    PRO_INC_PATH     = $$replace(PRO_INC_PATH, /, \\)
    CYG_POST_COPY    = $$replace(CYG_POST_COPY, /, \\)

    mkdir_inc        = (if not exist $${PRO_INC_PATH} $${QMAKE_MKDIR} $${PRO_INC_PATH})
    copy_apis        = (for %%i in ($${CYG_POST_COPY}) do $${QMAKE_COPY_FILE} %%i $${PRO_INC_PATH})

    QMAKE_POST_LINK += && $$mkdir_inc && $$copy_apis
}

unix {
    mkdir_inc        = $${QMAKE_MKDIR} $${PRO_INC_PATH}
    copy_apis        = $${QMAKE_COPY_FILE} $${CYG_POST_COPY} $${PRO_INC_PATH}

    QMAKE_POST_LINK += ; $$mkdir_inc; $$copy_apis
}
